package com.gopay.scheduler.dao;

import com.gopay.common.base.dao.BaseDAO;
import com.gopay.common.domain.cust.CustSettledInfo;

import java.io.Serializable;
import java.util.List;

/**
 * Created by liyang on 2017/4/12.
 */
public interface MerchantSettledInfoDAO extends BaseDAO<CustSettledInfo, Serializable> {
    /**
     * 通过商户ID查询商户入驻信息
     * @param custId
     * @return
     */
    List<CustSettledInfo> getCustSettledInfoByCustId(String custId);

    /**
     * 通过商户ID和入驻类型(微信或者支付宝)查询商户入驻信息
     * @param custId
     * @param type
     * @return
     */
    CustSettledInfo getCustSettledInfoByCustIdAndType(String custId, String type);

    CustSettledInfo getCustSettledInfo(String custId, String type, String stat);

    CustSettledInfo getCustSettledInfoByPram(String merchantCode, String type);

    List<CustSettledInfo> getCustSettledInfoByState(String state);
}
